# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version Jun 30 2011)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc
import wx.stc
import wx.html2

###########################################################################
## Class pyMdEditor
###########################################################################

class pyMdEditor ( wx.Frame ):
	
	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = u"pyMarkdownEditor", pos = wx.DefaultPosition, size = wx.Size( 805,597 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
		
		self.m_menubar1 = wx.MenuBar( 0 )
		self.file = wx.Menu()
		self.m_menuItem1 = wx.MenuItem( self.file, wx.ID_ANY, u"新建", wx.EmptyString, wx.ITEM_NORMAL )
		self.file.AppendItem( self.m_menuItem1 )
		
		self.m_menuItem2 = wx.MenuItem( self.file, wx.ID_ANY, u"保存", wx.EmptyString, wx.ITEM_NORMAL )
		self.file.AppendItem( self.m_menuItem2 )
		
		self.m_menuItem3 = wx.MenuItem( self.file, wx.ID_ANY, u"另存为", wx.EmptyString, wx.ITEM_NORMAL )
		self.file.AppendItem( self.m_menuItem3 )
		
		self.file.AppendSeparator()
		
		self.m_menuItem4 = wx.MenuItem( self.file, wx.ID_ANY, u"退出", wx.EmptyString, wx.ITEM_NORMAL )
		self.file.AppendItem( self.m_menuItem4 )
		
		self.m_menubar1.Append( self.file, u"文件" ) 
		
		self.m_menu2 = wx.Menu()
		self.m_menuItem5 = wx.MenuItem( self.m_menu2, wx.ID_ANY, u"字体", wx.EmptyString, wx.ITEM_NORMAL )
		self.m_menu2.AppendItem( self.m_menuItem5 )
		
		self.m_menubar1.Append( self.m_menu2, u"选项" ) 
		
		self.SetMenuBar( self.m_menubar1 )
		
		bSizer1 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_stc = wx.stc.StyledTextCtrl(self)
		bSizer1.Add( self.m_stc, 1, wx.ALL|wx.EXPAND, 3 )
		
		self.m_browser = wx.html2.WebView.New(self)
		bSizer1.Add( self.m_browser, 1, wx.ALL|wx.EXPAND, 3 )
		
		self.SetSizer( bSizer1 )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		# Connect Events
		self.Bind( wx.EVT_MENU, self.OnFileOpen, id = self.m_menuItem1.GetId() )
		self.Bind( wx.EVT_MENU, self.OnFileSave, id = self.m_menuItem2.GetId() )
		self.Bind( wx.EVT_MENU, self.OnFileSaveAs, id = self.m_menuItem3.GetId() )
		self.Bind( wx.EVT_MENU, self.OnExit, id = self.m_menuItem4.GetId() )
		self.Bind( wx.EVT_MENU, self.OnFontSel, id = self.m_menuItem5.GetId() )
			
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def OnFileOpen( self, event ):
		event.Skip()
	
	def OnFileSave( self, event ):
		event.Skip()
	
	def OnFileSaveAs( self, event ):
		event.Skip()
	
	def OnExit( self, event ):
		event.Skip()
	
	def OnFontSel( self, event ):
		event.Skip()
	

